package com.novax.ex.activity.provider.api;

import com.novax.ex.activity.provider.api.model.InvitationResponse;
import com.novax.ex.activity.provider.common.ServerName;
import com.novax.ex.common.results.ReturnResult;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @Description 后台--代理商邀请关系
 * @Author Quill
 * @Date 2022/11/25
 * @Version 1.0
 */
@FeignClient(url = "${remote.broker-service.endpoint}", name = "BrokerInvitationRelationshipApi", contextId = "BrokerInvitationRelationshipApi")
public interface BrokerInvitationRelationshipApi {

    @Operation(summary = "获取邀请人")
    @PostMapping(value = "v3/invitation/sendDepth")
    ReturnResult<List<InvitationResponse>> getInvitedList(@RequestBody List<Long> userList);


}
